import request from './network.js';
import { https } from '../utils/http.js';


export function getOrderList(data) {
  return request({
    url: https.getOrderList,
    data,
    header: {
      'token': wx.getStorageSync('token')
    }
  })
}
export function cancelOrder(id,data) {
  return request({
    url: `${https.cancelOrder}${id}/cancel`,
    header: {
      'token': wx.getStorageSync('token')
    }
  })
}
